import request from '@/utils/request'

// 查询字段表列表
export function listPmsField(query, pageReq) {
  return request({
    url: '/mall/pmsField/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询字段表详细
export function getPmsField(id) {
  return request({
    url: '/mall/pmsField/' + id,
    method: 'get'
  })
}

// 新增字段表
export function addPmsField(data) {
  return request({
    url: '/mall/pmsField',
    method: 'post',
    data: data
  })
}

// 修改字段表
export function updatePmsField(data) {
  return request({
    url: '/mall/pmsField',
    method: 'put',
    data: data
  })
}

// 删除字段表
export function delPmsField(id) {
  return request({
    url: '/mall/pmsField/' + id,
    method: 'delete'
  })
}

// 导出字段表
export function exportPmsField(query) {
  return request({
    url: '/mall/pmsField/export',
    method: 'get',
    params: query
  })
}
// 查询字段表列表
export function H5listPmsField(query, pageReq) {
  return request({
    url: '/h5/pmsField/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}
